
using System;
using System.Collections;

namespace FutureOpen.Core
{
	#region Att

	/// <summary>
	/// Att string for NHibernate mapped table 'att'.
	/// </summary>
	public class Att
		{
		#region Member Variables
		
		protected int _att_id;
		protected string _att_guid;
		protected string _att_filename;
		protected string _att_desc;

		#endregion

		#region Constructors

		public Att() { }

		public Att( string att_guid, string att_filename, string att_desc )
		{
			this._att_guid = att_guid;
			this._att_filename = att_filename;
			this._att_desc = att_desc;
		}

		#endregion

		#region Public Properties

		public virtual int Att_id
		{
			get {return _att_id;}
			set {_att_id = value;}
		}

		public virtual string Att_guid
		{
			get { return _att_guid; }
			set
			{
				if ( value != null && value.Length > 135)
					throw new ArgumentOutOfRangeException("Invalid value for Att_guid", value, value.ToString());
				_att_guid = value;
			}
		}

		public virtual string Att_filename
		{
			get { return _att_filename; }
			set
			{
				if ( value != null && value.Length > 600)
					throw new ArgumentOutOfRangeException("Invalid value for Att_filename", value, value.ToString());
				_att_filename = value;
			}
		}

		public virtual string Att_desc
		{
			get { return _att_desc; }
			set
			{
				if ( value != null && value.Length > 600)
					throw new ArgumentOutOfRangeException("Invalid value for Att_desc", value, value.ToString());
				_att_desc = value;
			}
		}

        
		#endregion
		
        
	}

	#endregion
}
